package com.fanbo;

import java.io.IOException;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

public class DubboProviderMain {

  public static void main(String[] args) throws IOException {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
    context.start();
    System.in.read();
  }

  @Configuration
  @EnableDubbo(scanBasePackages = "com.fanbo.impl")
  @PropertySource("classpath:/dubbo-provider.properties")
  static class ProviderConfiguration{

  }

}
